.el-date-editor {
  position: relative;
  display: inline-block;
  vertical-align: top;
  padding-right: 14px;
  border: 1px solid #dddee1;
  @include border-radius(4px);
  overflow: hidden;

  height: 36px;
  width: 360px;
  font-size: 12px;

  &:hover,
  &.is-active {
    border-color: #2b74ff;
  }

  &.is-active {
    @include box-shadow(0 0 0 2px rgba(43, 116, 255, 0.15));
  }

  .el-range-input {
    width: 50%;
    float: left;
    padding: 0 22px 0 10px;
    color: #1c2438;
    line-height: 34px;
  }

  .el-range-separator {
    position: absolute;
    width: 12px;
    margin-left: -12px;
    color: #80848f;
    line-height: 34px;
  }

  .el-icon-date {
    position: absolute;
    width: 16px;
    height: 16px;
    right: 10px;
    top: 50%;
    margin-top: -8px;
  }

  &.el-range-editor--medium {
    width: 225px;
    line-height: 32px;
    height: 32px;

    .el-range-input {
      line-height: 30px;
    }

    .el-range-separator {
      line-height: 30px;
    }
  }
}

.el-picker-panel {
  color: #495060;
  border: 1px solid #e5e7ee;
  @include box-shadow(0 2px 9px 0 #eef0f7);
  background: $white;
  @include border-radius(4px);
  line-height: 24px;
  margin: 5px 0;

  .el-date-range-picker__content {
    float: left;
    width: 50%;
    margin: 0;
    padding: 14px;
    &.is-left {
      border-right: 1px solid #e5e7ee;
    }
  }

  .el-date-range-picker__header {
    position: relative;
    height: 22px;
    line-height: 22px;
    font-size: 16px;
    color: #495060;
    text-align: center;
    font-weight: 700;

    .el-picker-panel__icon-btn {
      width: 12px;
      height: 12px;
      margin-top: 5px;
      background-color: transparent;
      outline: 0;
      border: 0;
      cursor: pointer;
    }

    [class*="arrow-left"] {
      float: left;

      & + [class*="arrow-left"] {
        margin-left: 14px;
      }
    }

    [class*="arrow-right"] {
      float: right;

      & + [class*="arrow-right"] {
        margin-right: 14px;
      }
    }
  }
}

.el-picker-panel {
  &.el-popper {
    .popper__arrow,
    .popper__arrow::after {
      position: absolute;
      display: block;
      width: 0;
      height: 0;
      border-color: transparent;
      border-style: solid;
    }
    .popper__arrow {
      border-width: 6px;
      -webkit-filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
      filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
    }

    .popper__arrow::after {
      content: " ";
      border-width: 6px;
    }

    &[x-placement^="top"] {
      margin-bottom: 5px;
    }

    &[x-placement^="bottom"] {
      margin-top: 5px;
    }

    &[x-placement^="right"] {
      margin-left: 5px;
    }
    &[x-placement^="left"] {
      margin-right: 5px;
    }
  }
}

.el-date-range-picker {
  width: 646px;
  .el-picker-panel__body {
    min-width: 636px;
    overflow: hidden;
  }

  &.has-sidebar {
    width: 756px;
  }
}

.el-picker-panel__sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  border-right: 1px solid #e5e7ee;
  background-color: #fff;
  overflow: auto;

  .el-picker-panel__shortcut {
    width: 100%;
    line-height: 32px;
    height: 32px;
    background-color: transparent;
    color: #495060;
    border: 0;
    outline: 0;
    text-align: left;
    padding: 0 10px;
  }

  & + .el-picker-panel__body {
    margin-left: 100px;
  }
}

.el-date-table {
  margin-top: 4px;
  table-layout: fixed;
  width: 100%;
  color: #495060;
  font-size: 12px;
  user-select: none;

  tr:nth-child(2) {
    td {
      padding-top: 8px;
    }
  }

  th {
    line-height: 17px;
    padding: 10px 0;
    border-bottom: 1px solid #ebedf5;
  }

  td {
    padding: 3px 0;
    cursor: pointer;
    text-align: center;

    div {
      height: 26px;
      vertical-align: top;
    }

    span {
      margin-top: 1px;
      width: 24px;
      height: 24px;
      display: inline-block;
      line-height: 24px;
      border-radius: 50%;
      vertical-align: top;
    }
  }

  .in-range {
    div {
      background-color: #f0f5ff;
    }
  }

  .start-date,
  .end-date {
    span {
      @include border-radius(12px);
      background-color: #2b74ff;
      color: $white;
      text-align: center;
    }
  }

  .start-date div {
    margin-left: 9px;
    text-align: left;
    @include border-radius(8px 0 0 8px);
  }

  .end-date div {
    margin-right: 9px;
    text-align: right;
    @include border-radius(0 8px 8px 0);
  }

  .available:hover {
    color: #2b74ff;
  }
}
